<?php
/**
 * Class for the database entity "user_recommendation"
 *
 * @author zonk
 */

class UserrecommendationModel {
	
	/**
	 * The id of the user recommendation
	 * @var int
	 */
	private $userrecommendationid;
	
	/**
	 * The user who has given the recommendation
	 * @var UserModel
	 */
	private $fromuser;
	
	/**
	 * The user who received the recommendation
	 * @var UserModel
	 */
	private $foruser;
	
	/**
	 * The movie which was recommended
	 * @var MovieModel
	 */
	private $movie;
	
	/**
	 * The date when the recommendation was given
	 * @var string
	 */
	private $date;
	
	/**
	 * @param id $userrecommendationid
	 * @param UserModel $fromuser
	 * @param UserModel $foruser
	 * @param MovieModel $movie
	 * @param string $date
	 */
	public function __construct($userrecommendationid, $fromuser, $foruser, $movie, $date) {
		$this->userrecommendationid = $userrecommendationid; 
		$this->fromuser = $fromuser;
		$this->foruser = $foruser;
		$this->movie = $movie;
		$this->date = $date;		
	}
	
	/**======================================
	 * Getter & Setter
	*=======================================
	*/
	
	/**
	 * 
	 * @return int
	 */
	public function getUserrecommendationid()
	{
	    return $this->userrecommendationid;
	}

	/**
	 * 
	 * @param int $userrecommendationid
	 */
	public function setUserrecommendationid($userrecommendationid)
	{
	    $this->userrecommendationid = $userrecommendationid;
	}

	/**
	 * 
	 * @return UserModel
	 */
	public function getFromuser()
	{
	    return $this->fromuser;
	}

	/**
	 * 
	 * @param UserModel $fromuser
	 */
	public function setFromuser($fromuser)
	{
	    $this->fromuser = $fromuser;
	}

	/**
	 * 
	 * @return UserModel
	 */
	public function getForuser()
	{
	    return $this->foruser;
	}

	/**
	 * 
	 * @param UserModel $foruser
	 */
	public function setForuser($foruser)
	{
	    $this->foruser = $foruser;
	}

	/**
	 * 
	 * @return MovieModel
	 */
	public function getMovie()
	{
	    return $this->movie;
	}

	/**
	 * 
	 * @param MovieModel $movie
	 */
	public function setMovie($movie)
	{
	    $this->movie = $movie;
	}

	/**
	 * 
	 * @return string
	 */
	public function getDate()
	{
	    return $this->date;
	}

	/**
	 * 
	 * @param string $date
	 */
	public function setDate($date)
	{
	    $this->date = $date;
	}
}